/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-07-31 20:32:26
 * @FilePath: /yuxiuproweb/src/api/money/punishment/index.js
 */
import request from "@/utils/request";

// 查询奖惩列表
export function listPunishment(query) {
  return request({
    url: "/md/punishment/list",
    method: "get",
    params: query,
  });
}

// 查询奖惩详细
export function getPunishment(awardAndPunishmentId) {
  return request({
    url: "/md/punishment/" + awardAndPunishmentId,
    method: "get",
  });
}

// 新增奖惩
export function addPunishment(data) {
  return request({
    url: "/md/punishment",
    method: "post",
    data: data,
  });
}

// 修改奖惩
export function updatePunishment(data) {
  return request({
    url: "/md/punishment",
    method: "put",
    data: data,
  });
}

// 删除奖惩
export function delPunishment(awardAndPunishmentId) {
  return request({
    url: "/md/punishment/" + awardAndPunishmentId,
    method: "delete",
  });
}
